package com.study.seata.business.feign.hystrix;

import java.util.HashMap;
import java.util.Map;

import com.study.seata.business.feign.OrderService;
import org.springframework.stereotype.Component;

import com.study.seata.common.model.order.Order;

/**
 * Order熔断
 * 
 * @author
 */
@Component
public class OrderServiceHystrixImpl implements OrderService {

	/**
	 * 新增失败熔断返回
	 * 
	 * @param order
	 * @return
	 */
	@Override
	public Map<String, Object> insert(Order order) {
		Map<String, Object> result = new HashMap<>(16);
		result.put("status", 400);
		result.put("message", "调用订单新增服务失败！");
		return result;
	}

}
